<?php

namespace plugin\admin\app\model;

use plugin\admin\app\model\Base;

/**
 * @property integer $id (主键)
 * @property integer $admin_id 操作者ID wa_admins.id
 * @property integer $request_type 请求类型名称:：1-post 2-get 3-put
 * @property string $route 路由地址
 * @property string $ip 操作ip
 * @property string $request_data 请求数据
 * @property string $return_data 响应数据
 * @property integer $type 操作类型：1-新增 2-修改 3-删除
 * @property string $table 操作对象
 * @property integer $table_id 操作对象id
 * @property string $log 操作日志
 * @property integer $status 操作状态 0-成功 1-失败
 * @property string $created_at 创建时间
 */
class AdminLog extends Base
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'wa_admin_log';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';
    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    //操作类型：1-新增 2-修改 3-删除
    const TYPE_INSERT =1;
    const TYPE_UPDATE =2;
    const TYPE_DELETE =3;

    //操作状态 1-成功 0-失败
    const STATUS_SUCCESS =1;
    const STATUS_FAIL =0;

}
